/*
package com.yami.shop.app.service;

import com.yami.shop.app.config.JwtUser;
import com.yami.shop.bean.cashregisterapp.AppCashRegisterSystemUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import com.yami.shop.dao.AppCashRegisterSystemUserMapper;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserDetailsServiceImpl  implements UserDetailsService {


    @Resource
    private AppCashRegisterSystemUserMapper appCashRegisterSystemUserMapper;

    @Override
    public UserDetails loadUserByUsername(String s) throws UsernameNotFoundException {
        AppCashRegisterSystemUser user = appCashRegisterSystemUserMapper.getByName(s);
        return new JwtUser(user);
    }
}
*/
